package org.jeecg.modules.nc.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.nc.entity.NcInoutbusiclass;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: NC收支项目
 * @Author: qixin-boot
 * @Date:   2022-02-16
 * @Version: V1.0
 */
public interface NcInoutbusiclassMapper extends BaseMapper<NcInoutbusiclass> {

    @Select("select name from nc_inoutbusiclass where id = #{indexId}")
    String getIndexIdName(@Param("indexId") String indexId);

    @Select("select id from nc_inoutbusiclass where pk_org = #{orgId}")
    List<String> selectByOrgId(@Param("orgId") String orgId);
}
